const express = require("express");
// 创建服务器
const app = express();
// 导入路由
const router = require(__dirname + "/router");
// 挂载路由 app.use->注册全局中间件
app.use("/api", router);
//监听端口
app.listen(3000, () => {
  console.log("Server is running on port 3000");
});
